.class public Lcom/facebook/e/b/d;
.super Ljava/lang/Object;
.source "TraceEvent.java"


# static fields
.field private static final i:Lcom/facebook/c/g/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/facebook/c/g/a",
            "<",
            "Lcom/facebook/e/b/d;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private a:Lcom/facebook/e/b/f;

.field private b:J

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:J

.field private f:J

.field private g:J

.field private h:J


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 33
    new-instance v0, Lcom/facebook/c/g/d;

    const-class v1, Lcom/facebook/e/b/d;

    invoke-static {}, Lcom/facebook/c/h/b;->b()Lcom/facebook/c/h/b;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/facebook/c/g/d;-><init>(Ljava/lang/Class;Lcom/facebook/c/h/a;)V

    new-instance v1, Lcom/facebook/e/b/e;

    const-class v2, Lcom/facebook/e/b/d;

    invoke-direct {v1, v2}, Lcom/facebook/e/b/e;-><init>(Ljava/lang/Class;)V

    invoke-virtual {v0, v1}, Lcom/facebook/c/g/d;->a(Lcom/facebook/c/g/b;)Lcom/facebook/c/g/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/c/g/d;->a()Lcom/facebook/c/g/a;

    move-result-object v0

    sput-object v0, Lcom/facebook/e/b/d;->i:Lcom/facebook/c/g/a;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 49
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/facebook/e/b/e;)V
    .locals 0
    .parameter

    .prologue
    .line 14
    invoke-direct {p0}, Lcom/facebook/e/b/d;-><init>()V

    return-void
.end method

.method static a(Lcom/facebook/e/b/f;JLjava/lang/String;Ljava/lang/String;JJ)Lcom/facebook/e/b/d;
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 54
    sget-object v0, Lcom/facebook/e/b/d;->i:Lcom/facebook/c/g/a;

    invoke-virtual {v0}, Lcom/facebook/c/g/a;->a()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/e/b/d;

    .line 55
    iput-object p0, v0, Lcom/facebook/e/b/d;->a:Lcom/facebook/e/b/f;

    .line 56
    iput-wide p1, v0, Lcom/facebook/e/b/d;->b:J

    .line 57
    iput-object p3, v0, Lcom/facebook/e/b/d;->c:Ljava/lang/String;

    .line 58
    iput-object p4, v0, Lcom/facebook/e/b/d;->d:Ljava/lang/String;

    .line 59
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/facebook/e/b/d;->g:J

    .line 60
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/facebook/e/b/d;->e:J

    .line 61
    iput-wide p5, v0, Lcom/facebook/e/b/d;->f:J

    .line 62
    iput-wide p7, v0, Lcom/facebook/e/b/d;->h:J

    .line 63
    return-object v0
.end method

.method static a(J)Ljava/lang/String;
    .locals 5
    .parameter

    .prologue
    .line 159
    new-instance v0, Ljava/lang/StringBuilder;

    const/16 v1, 0xa

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V

    .line 160
    long-to-float v1, p0

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    int-to-long v1, v1

    .line 161
    const-wide/16 v3, 0xa

    cmp-long v3, v1, v3

    if-gez v3, :cond_1

    .line 162
    const-string v3, "____"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 170
    :cond_0
    :goto_0
    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 171
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 163
    :cond_1
    const-wide/16 v3, 0x64

    cmp-long v3, v1, v3

    if-gez v3, :cond_2

    .line 164
    const-string v3, "___"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 165
    :cond_2
    const-wide/16 v3, 0x3e8

    cmp-long v3, v1, v3

    if-gez v3, :cond_3

    .line 166
    const-string v3, "__"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 167
    :cond_3
    const-wide/16 v3, 0x2710

    cmp-long v3, v1, v3

    if-gez v3, :cond_0

    .line 168
    const-string v3, "_"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/e/b/d;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 14
    iput-object p1, p0, Lcom/facebook/e/b/d;->c:Ljava/lang/String;

    return-object p1
.end method

.method static b(J)Ljava/lang/String;
    .locals 12
    .parameter

    .prologue
    const-wide/16 v10, 0x0

    const/4 v9, 0x1

    const-wide/16 v7, 0x3e8

    .line 182
    long-to-float v0, p0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    int-to-long v0, v0

    .line 183
    div-long v2, v0, v7

    const-wide/16 v4, 0x3c

    rem-long/2addr v2, v4

    invoke-static {v10, v11, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v2

    .line 184
    rem-long/2addr v0, v7

    invoke-static {v0, v1, v10, v11}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    .line 187
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-wide/16 v5, 0x64

    add-long/2addr v2, v5

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x3

    invoke-virtual {v2, v9, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const/16 v3, 0x2e

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    add-long/2addr v0, v7

    invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v9, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic b(Lcom/facebook/e/b/d;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 14
    iput-object p1, p0, Lcom/facebook/e/b/d;->d:Ljava/lang/String;

    return-object p1
.end method


# virtual methods
.method a(JJLjava/lang/String;)Ljava/lang/String;
    .locals 9
    .parameter
    .parameter
    .parameter

    .prologue
    const-wide/32 v7, 0xf4240

    .line 107
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 109
    const-wide/16 v1, -0x1

    cmp-long v1, p3, v1

    if-nez v1, :cond_1

    .line 110
    const-string v1, "-----"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 115
    :goto_0
    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 116
    iget-wide v1, p0, Lcom/facebook/e/b/d;->e:J

    sub-long/2addr v1, p1

    div-long/2addr v1, v7

    invoke-static {v1, v2}, Lcom/facebook/e/b/d;->b(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 117
    iget-object v1, p0, Lcom/facebook/e/b/d;->a:Lcom/facebook/e/b/f;

    sget-object v2, Lcom/facebook/e/b/f;->a:Lcom/facebook/e/b/f;

    if-ne v1, v2, :cond_2

    .line 118
    const-string v1, " Start    ...     ...   "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 134
    :cond_0
    :goto_1
    invoke-virtual {v0, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 135
    invoke-virtual {p0}, Lcom/facebook/e/b/d;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 136
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 112
    :cond_1
    iget-wide v1, p0, Lcom/facebook/e/b/d;->e:J

    sub-long/2addr v1, p3

    div-long/2addr v1, v7

    invoke-static {v1, v2}, Lcom/facebook/e/b/d;->a(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 119
    :cond_2
    iget-object v1, p0, Lcom/facebook/e/b/d;->a:Lcom/facebook/e/b/f;

    sget-object v2, Lcom/facebook/e/b/f;->b:Lcom/facebook/e/b/f;

    if-ne v1, v2, :cond_3

    .line 120
    const-string v1, " Done "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 121
    iget-wide v1, p0, Lcom/facebook/e/b/d;->e:J

    iget-wide v3, p0, Lcom/facebook/e/b/d;->f:J

    sub-long/2addr v1, v3

    .line 122
    iget-wide v3, p0, Lcom/facebook/e/b/d;->g:J

    iget-wide v5, p0, Lcom/facebook/e/b/d;->h:J

    sub-long/2addr v3, v5

    .line 124
    div-long/2addr v1, v7

    invoke-static {v1, v2}, Lcom/facebook/e/b/d;->a(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 125
    const-string v1, " ms "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 126
    invoke-static {v3, v4}, Lcom/facebook/e/b/d;->a(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 127
    const-string v1, " ms "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1

    .line 128
    :cond_3
    iget-object v1, p0, Lcom/facebook/e/b/d;->a:Lcom/facebook/e/b/f;

    sget-object v2, Lcom/facebook/e/b/f;->d:Lcom/facebook/e/b/f;

    if-eq v1, v2, :cond_0

    .line 131
    const-string v1, " Comment  ...     ...   "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1
.end method

.method a()V
    .locals 1

    .prologue
    .line 67
    sget-object v0, Lcom/facebook/e/b/d;->i:Lcom/facebook/c/g/a;

    invoke-virtual {v0, p0}, Lcom/facebook/c/g/a;->a(Ljava/lang/Object;)V

    .line 68
    return-void
.end method

.method public b()J
    .locals 2

    .prologue
    .line 71
    iget-wide v0, p0, Lcom/facebook/e/b/d;->b:J

    return-wide v0
.end method

.method public c()Lcom/facebook/e/b/f;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/facebook/e/b/d;->a:Lcom/facebook/e/b/f;

    return-object v0
.end method

.method public d()Ljava/lang/String;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/facebook/e/b/d;->c:Ljava/lang/String;

    return-object v0
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/facebook/e/b/d;->d:Ljava/lang/String;

    return-object v0
.end method

.method public f()J
    .locals 2

    .prologue
    .line 91
    iget-wide v0, p0, Lcom/facebook/e/b/d;->e:J

    return-wide v0
.end method

.method public g()J
    .locals 2

    .prologue
    .line 95
    iget-wide v0, p0, Lcom/facebook/e/b/d;->g:J

    return-wide v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 143
    iget-object v0, p0, Lcom/facebook/e/b/d;->d:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 144
    iget-object v0, p0, Lcom/facebook/e/b/d;->c:Ljava/lang/String;

    .line 146
    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/e/b/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "] "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/e/b/d;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
